import java.util.Arrays;
import java.util.Scanner;
class Student{
    public String name;
    public int age;
    public String gender;

    public Student(String gender) {
        this.gender = gender;
    }

    public void setDatas(String name, int age, String gender){
        this.name =name;
        this.age=age;
        this.gender=gender;
    }
    public void print(){
        System.out.println(this.gender+":"+this.name+":"+this.age);
    }
}
public class Main {




    public static void fun1(int[] array){
        array=new int[10];
    }
    public static void fun2(int[] array){
        array[0]=99;
    }

    public static void main(String[] args) {
        Student s1=new Student();
        s1.setDatas("zhangsan",18,"man");
        s1.print();
    }







    public static void main2(String[] args) {
        int[] arr=new int[3];

    }

    public static void main1(String[] args) {
        int[] array={1,2,3};
        fun1(array);
        System.out.println(Arrays.toString(array) );
        fun2(array);
        System.out.println(Arrays.toString(array) );
        int[] arr1={1,2,3,4,5};
        //int[] arr2=new int[arr1.length ];
        int[] arr2=Arrays.copyOf(arr1,arr1.length );
        int[] arr3=Arrays.copyOf(arr1,2*arr1.length );
        System.out.println(Arrays.toString(arr2));
        System.out.println(Arrays.toString(arr3));
    }
}